package com.jzr.bedside.db1.model;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * VIEW
 * </p>
 *
 * @author henry
 * @since 2019-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="VBed对象", description="VIEW")
public class VBed implements Serializable {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "v_bed";
    public static final String Id_ = "id";
    public static final String DistrictCode_ = "district_code";
    public static final String DeptCode_ = "dept_code";
    public static final String BedCode_ = "bed_code";
    public static final String BedName_ = "bed_name";
    public static final String BedName2_ = "bed_name2";
    public static final String BedCardId_ = "bed_card_id";
    public static final String RoomCode_ = "room_code";
    public static final String BedType_ = "bed_type";
    public static final String PatientId_ = "patient_id";
    public static final String Status_ = "status";
    public static final String Remark_ = "remark";
    public static final String UpdateTime_ = "update_time";
    public static final String UpdateBy_ = "update_by";
    public static final String UpdateByWho_ = "update_by_who";
    public static final String DeviceNo_ = "device_no";
    public static final String DeviceIp_ = "device_ip";


    @ApiModelProperty(value = "床位id")
    @TableField("id")
    private Integer id;

    @ApiModelProperty(value = "病区编号")
    @TableField("district_code")
    private String districtCode;

    @ApiModelProperty(value = "科室编号")
    @TableField("dept_code")
    private String deptCode;

    @ApiModelProperty(value = "床位编号")
    @TableField("bed_code")
    private String bedCode;

    @TableField("bed_name")
    private String bedName;

    @TableField("bed_name2")
    private String bedName2;

    @ApiModelProperty(value = "床头卡id")
    @TableField("bed_card_id")
    private Integer bedCardId;

    @ApiModelProperty(value = "病房ID")
    @TableField("room_code")
    private String roomCode;

    @ApiModelProperty(value = "床位类型")
    @TableField("bed_type")
    private String bedType;

    @ApiModelProperty(value = "病人ID")
    @TableField("patient_id")
    private Integer patientId;

    @ApiModelProperty(value = "床位占用状态：0空闲 1使用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "用户名称")
    @TableField("update_by_who")
    private String updateByWho;

    @ApiModelProperty(value = "设备号")
    @TableField("device_no")
    private String deviceNo;

    @ApiModelProperty(value = "设备ip地址")
    @TableField("device_ip")
    private String deviceIp;


}
